import requests from "./ajax";

const baseURL = '/business-statistics'

// 获取用药信息
export const reqGetNormal = () => requests({ url: `${baseURL}/statistics/Doughnut_Chart_with_Rounded_Corner/health`, method: 'get', headers: { 'Content-Type': 'application/x-www-form-urlencoded' } });

// 性别比例
export const reqGetSexRatio = () => requests({ url: `${baseURL}/statistics/Doughnut_Chart_with_Rounded_Corner/sex`, method: 'get', headers: { 'Content-Type': 'application/x-www-form-urlencoded' } });
//身体指标
export const reqGetBody = (elderId) => requests({ url: `${baseURL}/statistics/smoothed_line_hart?elderId=${elderId}`, method: 'post', headers: { 'Content-Type': 'application/x-www-form-urlencoded' } });